package components.gamelevels;

import images.GameImagesMap;

import com.uqbar.vainilla.GameScene;
import components.blocks.Block;
import components.blocks.BlockLevel1;
import components.decoration.Background;

public class Level1 extends GameLevel {


	public Level1(int initialLifes, int initialScore) {
		super("Level 1, intro", 500, initialLifes, initialScore);
		
		this.addMainBackground();
	}

	protected void addMainBackground() {
		Background bg = new Background(GameImagesMap.getImage("bglevel1"));
		this.addComponent(bg);
	}

	@Override
	public BlocksMatrix getMatrix() {
		BlocksMatrix matrix = new BlocksMatrix(350, 200, 500, 300, 20, Block.WIDTH, Block.HEIGHT);
		matrix.addBlock(new BlockLevel1(), 0, 0);
		//matrix.addBlock(new Block(Color.BLACK), 0, 1);
		return matrix;
	}

	@Override
	protected GameScene getNextScene(int currentScore, int currentLifes) {
		return new Level2(currentLifes, currentScore);
	}


}
